#pragma once
#include "View.h"
class Layout;

class RootView :
	public View
{
public:
	RootView();
	virtual ~RootView();

	virtual bool onPaint(SkCanvas* canvas);

	virtual bool init() = 0;
	virtual bool deinit() = 0;

	bool updateLayout();

	View* getViewById(uint32 id);
protected:
	virtual bool paint(SkCanvas* canvas);


	Layout* getLayout();
	void setLayout(Layout* layout);

private:
	Layout* m_layout;
	// View* m_lastHover;

	typedef View PARENT;
};

